<?php

declare(strict_types=1);

namespace Core\Command;

use App\Site\Contract\SiteServiceInterface;
use App\Site\Dto\SiteInfoDto;
use Hyperf\Command\Annotation\Command;
use Hyperf\Command\Command as HyperfCommand;

#[Command]
class TestCommand extends HyperfCommand
{
    protected ?string $name = 'app:test';

    public function handle()
    {
        $s = container()->get(SiteServiceInterface::class)->findBySiteId(1913180297101762560);
        dump($s);
        $dto = SiteInfoDto::from($s);
        dump($dto);
    }
}